package edu.sctu.java.day0930;

public class Test01 {
    void a(){
        try{
            b();
        }catch(Exception e){
            System.out.println("a处理错误！");
        }
    }

//    void aa() throws ArithmeticException{
//        bb();
//    }

    void b(){
        try{
            System.out.println(10/0);

        }catch (Exception e){
//            System.out.println("b处理错误");

            throw new ArithmeticException();

        }
    }

    public static void main(String[] args) {
        Test01 test01 = new Test01();
        test01.a();
    }
}
